var express = require('express');
var router = express.Router();

var data = require('./mockData/resident.json')
router.get('/list',function (req, res, next) {
    // res.status(403).end()
    res.json({
        draw: req.query.draw,
        recordsFiltered: 300,
        recordsTotal: 3000,
        data: data
    })
})

router.get('/specialSearch',function (req, res, next) {
    // res.status(403).end()
    res.json({
        resultData: data
    })
})

module.exports = router